<?php

class Application_Form_Login extends Application_Form_InlineForm {

		
    public function init() {
    	
    	$this->setAttrib('id', 'formlogin');
		
        $login = new Zend_Form_Element_Text('login', array(
                    'label' => 'Login :',
                    'required' => true,
                    'filters' => array('StringTrim'),
                    'validators' => array(
                        array('NotEmpty', true)
                    ),
                    'decorators' => $this->getElementDecorators()
                ));

        $password = new Zend_Form_Element_Password('password', array(
                    'label' => 'Mot de passe :',
                    'required' => true,
                    'filters' => array('StringTrim'),
                    'validators' => array(
                        array('NotEmpty', true)
                    ),
                    'decorators' => $this->getElementDecorators()
                ));
		
        $this->addElements(array($login, $password));
    }
}
